<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div class="container-fluid">
	<div class="tabbable" id="tabs-598782">
		<ul class="nav nav-tabs">
			<li class="active" id="deposit"><a href="" data-toggle="tab" id="deposit">充值记录</a>
			</li>
		</ul>
		<!-- 充值列表容器 -->
		<div class="tab-pane active" id="depositList" > </div>
	</div>
</div>
<script type="text/html" id="depositList-template">
<table class="table table-striped table-hover table-bordered">
	<thead>
		<tr>
			<th>用户名</th>
			<th>服务名称</th>
			<th>购买金额</th>
			<th style="width:150px;">购买日期</th>
			<th style="width:150px;">交易号</th>
		</tr>
	</thead>
	<tbody >
		<$for(var i = 0;i<result.length;i++){$>
		<tr>
			<td>
				<$=result[i].user.name$>
			</td>
			<td>
				<$if(result[i].project!=null){print(result[i].project.name);}else{print("充值");}$>
			</td>
			<td>
				<$=result[i].amount$>
			</td>
			<td>
				<$=result[i].createdDate$>
			</td>
			<td>
				<$=result[i].tradeNo$>
			</td>
		</tr>
	<$}$>
	</tbody>
</table>
<$ if ( totalPages > 1 ) { $>
	<div class="pagination">
		<$==pagination$>
	</div>	
<$ } $>
</script>
<c:if test="${env == 'production' }">
<script type="text/javascript">
	seajs.use("${ctx}/assets/js-dist/admin/deposit-page");
</script>
</c:if>
<c:if test="${env != 'production' }">
<script type="text/javascript">
	seajs.use("${ctx}/assets/js/admin/deposit-page");
</script>
</c:if>
